package net.maku.user.convert;

import net.maku.user.entity.UserInfoEntity;
import net.maku.user.vo.UserInfoVO;
import net.maku.user.vo.UserInfoExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 维修信息
 *
 * @author df
 *
 */
@Mapper
public interface UserInfoConvert {
    UserInfoConvert INSTANCE = Mappers.getMapper(UserInfoConvert.class);

    UserInfoEntity convert(UserInfoVO vo);

    UserInfoVO convert(UserInfoEntity entity);

    List<UserInfoVO> convertList(List<UserInfoEntity> list);

    List<UserInfoEntity> convertList2(List<UserInfoVO> list);

    List<UserInfoExcelVO> convertExcelList(List<UserInfoEntity> list);

    List<UserInfoEntity> convertExcelList2(List<UserInfoExcelVO> list);
}